/**
 *
 */
package modele;

import java.util.Date;


/**
 * @author p0403809
 *
 */
public class User {

        private String nom;
        private String prenom;
        private int id;
        private static int num=0;
        private Date dateNaissance;
       
        public User(String _nom,String _prenom,Date date) {
                nom=_nom;
                prenom=_prenom;
                dateNaissance=date;
                id=num;
                num++;
        }
       
        public String getNom(){
                return nom;
        }
        public String getPrenom() {
                return prenom;
        }
        public boolean CompareTo(User u){
                        return (id==u.getId());
        }

        public int getId() {
                return id;
        }
        
        public Date getDateNaissance() {
            return dateNaissance;
        }
}